package com.p2p.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.p2p.model.entity.Bidrequest;
import com.p2p.model.entity.Userinfo;
import com.p2p.model.vo.BidrequestQueryVo;
import com.p2p.system.mapper.BidrequestMapper;
import com.p2p.system.service.BidrequestService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 借款信息表 服务实现类
 * </p>
 *
 * @author 黄旭彬
 * @since 2023-12-12
 */
@Service
public class BidrequestServiceImpl extends ServiceImpl<BidrequestMapper, Bidrequest> implements BidrequestService {

    @Override
    public IPage<Bidrequest> selectPage(Page<Bidrequest> pageParam, BidrequestQueryVo p2ploanQueryVo) {
        return this.baseMapper.selectUserPage(pageParam,p2ploanQueryVo);
    }

    @Override
    public IPage<Bidrequest> selectAllPage(Page<Bidrequest> pageParam, BidrequestQueryVo bidrequestQueryVo) {
        return this.baseMapper.selectBidPage(pageParam,bidrequestQueryVo);
    }

    @Override
    public IPage<Bidrequest> selectTwoPage(Page<Bidrequest> pageParam, BidrequestQueryVo bidrequestQueryVo) {
        return this.baseMapper.selectTwoPage(pageParam,bidrequestQueryVo);
    }

    @Override
    public IPage<Bidrequest> selectpublishPage(Page<Bidrequest> pageParam, BidrequestQueryVo bidrequestQueryVo) {
        return  this.baseMapper.selectpublishPage(pageParam,bidrequestQueryVo);
    }

    @Override
    public Bidrequest selectUserBidById(Long id) {
        return this.baseMapper.selectUserBidById(id);
    }
}
